#!/bin/bash

com=`ps -A | wc -l`
com2=`lsof -i | wc -l`

if [ $com -gt 30 ]
then 
 echo "There are " $com " processes running on this machine"
fi
if [ $com2 -lt 5 ]
then
 echo "There are " $com2 " connections opened"
fi 
